package com.zs.crmserver.constants;

/**
 * 常量类
 *
 */
public class Constants {

  public static final String LOGIN_URI = "/api/login";

  // redis的key的命名规范： 项目名:模块名:功能名:唯一业务参数(比如用户id)
  public static final String REDIS_JWT_KEY = "zs:user:login:";

  // redis中负责人的key
  public static final String REDIS_OWNER_KEY = "zs:user:owner";

  // jwt过期时间7天
  public static final Long EXPIRE_TIME = 7 * 24 * 60 * 60L;

  // jwt过期时间30分钟
  public static final Long DEFAULT_EXPIRE_TIME = 30 * 60L;

  // 分页时每页显示20条数据
  public static final String PAGE_SIZE = "20";
  public static final Integer DEFAULT_PAGE_SIZE = 20;

  // 请求token的名称
  public static final String TOKEN_NAME = "Authorization";

  public static final String EMPTY = "";

  // 导出Excel的接口路径
  public static final String EXPORT_EXCEL_URI = "/api/exportExcel";

  public static final String EXCEL_FILE_NAME = "客户信息数据";

}
